﻿using System;
using System.Collections.Generic;

namespace Models.Models;

/// <summary>
/// 支付日志
/// </summary>
public partial class SPayLog
{
    /// <summary>
    /// 支付日志id
    /// </summary>
    public ulong Id { get; set; }

    /// <summary>
    /// 用户id
    /// </summary>
    public uint UserId { get; set; }

    /// <summary>
    /// 订单id
    /// </summary>
    public uint OrderId { get; set; }

    /// <summary>
    /// 支付平台交易号
    /// </summary>
    public string TradeNo { get; set; } = null!;

    /// <summary>
    /// 支付平台用户帐号
    /// </summary>
    public string BuyerUser { get; set; } = null!;

    /// <summary>
    /// 支付金额
    /// </summary>
    public decimal PayPrice { get; set; }

    /// <summary>
    /// 订单实际金额
    /// </summary>
    public decimal TotalPrice { get; set; }

    /// <summary>
    /// 订单名称
    /// </summary>
    public string Subject { get; set; } = null!;

    /// <summary>
    /// 支付方式标记
    /// </summary>
    public string Payment { get; set; } = null!;

    /// <summary>
    /// 支付方式名称
    /// </summary>
    public string PaymentName { get; set; } = null!;

    /// <summary>
    /// 业务类型（0默认, 1订单, ...）
    /// </summary>
    public byte BusinessType { get; set; }

    /// <summary>
    /// 添加时间
    /// </summary>
    public uint AddTime { get; set; }
}
